Menu

Wiki usage

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Edit Sidebar
Main > ObjectiveMultipleExplosion

Using multiple bombs in an objective map

This tutorial is just a short comment on how change the ObjectiveExplosion tutorial into using 2 or more bombs to complete the objective.

Index:

On this page...

What to change in the map

To blast more bombs: you will need more bombs. Follow the ObjectiveExplosion tutorial for the first bomb, and then follow it for the rest of the bombs as well with a small change...

All references to:

TargetnameValue
exploder_set1
set1

...should be increased by 1 for each bomb beyond the first. So the second bomb would use:

TargetnameValue
exploder_set2
set2

...and a third bomb:

TargetnameValue
exploder_set3
set3

...guess what values to use for a fourth bomb ;)

What to change in the script

Follow the ObjectiveExplosion tutorial and do only one change to that script:

Change


level.targets_to_destroy = 1


...to the number of bombs you are using, like this for using two bombs:


level.targets_to_destroy = 2


Variants

The modification above forces the planting team to blow all bombs to complete their objective( like in the V2 stock map ). By manipulating the value of level.targets_to_destroy, you can create different winning conditions.

If you use 2 bombs, but keep the value of:


level.targets_to_destroy = 1


...you will make the planting team win when any of the bombs blow ( like in The Bridge stock map ).

If you use 3 bombs, but set the value of:


level.targets_to_destroy = 2


...you will make the planting team win when any 2 of the 3 bombs blow.

--Bjarne

Recent Changes Printable View Page History Edit Page [Attributes] [Printable View] [WikiHelp]
Page last modified on February 01, 2005, at 07:50 PM